using Boo.Lang;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using UnityEngine;

[Serializable]
public class arcadebutton : MonoBehaviour
{
	[Serializable]
	[CompilerGenerated]
	internal sealed class _0024change1_0024243 : GenericGenerator<WaitForSeconds>
	{
		internal arcadebutton _0024self__0024245;

		public _0024change1_0024243(arcadebutton self_)
		{
			_0024self__0024245 = self_;
		}

		public override IEnumerator<WaitForSeconds> GetEnumerator()
		{
			return new _0024(_0024self__0024245);
		}
	}

	[Serializable]
	[CompilerGenerated]
	internal sealed class _0024change2_0024246 : GenericGenerator<WaitForSeconds>
	{
		internal arcadebutton _0024self__0024248;

		public _0024change2_0024246(arcadebutton self_)
		{
			_0024self__0024248 = self_;
		}

		public override IEnumerator<WaitForSeconds> GetEnumerator()
		{
			return new _0024(_0024self__0024248);
		}
	}

	public AudioClip clip;

	public Texture pressed;

	public Texture unpressed;

	public GUITexture gui;

	public int fingerCount;

	public int arcade;

	public GameObject highscore;

	public void Start()
	{
		Time.timeScale = 1f;
		if (PlayerPrefs.GetInt("Arcade") == 0)
		{
			gui.texture = unpressed;
			arcade = 0;
		}
		if (PlayerPrefs.GetInt("Arcade") == 1)
		{
			gui.texture = pressed;
			arcade = 1;
		}
	}

	public void Update()
	{
		if (UnityEngine.Input.touchCount <= 0)
		{
			return;
		}
		Touch touch = Input.touches[0];
		if (touch.phase == TouchPhase.Began && GetComponent<GUITexture>().HitTest(touch.position))
		{
			AudioSource.PlayClipAtPoint(clip, Camera.main.transform.position);
			if (arcade == 1)
			{
				StartCoroutine(change1());
			}
			if (arcade == 0)
			{
				StartCoroutine(change2());
			}
		}
	}

	public IEnumerator change1()
	{
		return new _0024change1_0024243(this).GetEnumerator();
	}

	public IEnumerator change2()
	{
		return new _0024change2_0024246(this).GetEnumerator();
	}

	public void Main()
	{
	}
}
